<?php 
include'header.php';
include'menu.php';
include('config.php');
include("connection/connection.php");
$cid=$_GET['cid']; 
$sqlsel="select * from tbl_dtls_createuser where id=$cid";
$querysel=mysql_query($sqlsel);
$rowsel=mysql_fetch_array($querysel);
echo $rowsel['ussertype'];
/*if($_POST['submit'])
{
$name=$_POST['name'];
$usertype=$_POST['usertype'];
$loginid=$_POST['loginid'];
$emailid=$_POST['emailid'];
$sql1="update tbl_dtls_createuser set name='$name',usertype='$usertype',loginid='$loginid',emailid='$emailid' where id='$cid'";
$query1=mysql_query($sql1);
if($query1)
{
echo "Congritulation! Your Edit Created Successfully";
echo "<a href='../administrator/manage_user.php'>Back</a>";
}
}*/
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Create User</title>
<script language="javascript" type="text/javascript" src="js/validate.js"></script>
</head>

<body>                      
                           <!-- <table>
								
								<tr>
									<td><?php //include'header.php';?></td>
								</tr>
									</table>-->	

<table border="0" width="100%" id="table21" height="100%" cellspacing="1" style=" padding-top:0px" >
<tr bgcolor="FF9966">
	<td height="29" align="left" valign="top" bgcolor="#FF9966">&nbsp;</td>
	<td bgcolor="#FF9966" align="left" valign="top">&nbsp;</td>
	<td bgcolor="#FF9966" align="left" valign="top" colspan="5">&nbsp;</td>
	<td height="29" align="left" valign="top" bgcolor="#FF9966">&nbsp;</td>
	<td bgcolor="#FF9966" align="left" valign="top">&nbsp;</td>
</tr>
<tr>
	<td bgcolor="#E5E5E5" align="left" valign="top" width="1%">&nbsp;</td>
	<td bgcolor="#E5E5E5" align="left" valign="top" width="5%">
	<!--<img border="0" src="images/my_pag2.jpg">--></td>
	<td bgcolor="#E5E5E5" align="left" width="91%" colspan="5">
	<span lang="en-us">&nbsp;</span><span lang="en-us" style="font-size: 8.5pt"><font face="Verdana" color="#006699"><b>EDIT USER</b></font></span></td>
	<td bgcolor="#E5E5E5" align="left" valign="top" width="1%">&nbsp;</td>
	<td bgcolor="#E5E5E5" align="left" valign="top" width="5%">
</tr>

<tr>
	<td bgcolor="#E5E5E5" align="left" valign="top" colspan="7">
	<span style="font-size: 3pt" lang="en-us">&nbsp;</span></td>
	<td bgcolor="#E5E5E5" align="left" valign="top" colspan="7"></td>
</tr>
<tr>
	<td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
	<td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
	<td bgcolor="#E5E5E5" align="left" valign="top" colspan="5" bordercolor="#F2F2F2"></td>
	<td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
	<td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
</tr>
<tr>
	<td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
	<td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
	<td align="left" valign="top" colspan="5">
	<table border="0" width="750" id="table22" cellspacing="0" cellpadding="0">
								<!--<tr>
									<td bgcolor="#050505" height="1"></td>
								</tr>!-->
								<tr>
									<td>
										<table>
										<tr>
											<!--<td align="left" width="300">
											<?php //include'menu.php';?>
											</td>-->
											<td valign="top" width="700">
							<form name="admin" action="edit_user1.php" method="post" style="text-align: center" onSubmit="return edituser()">
											<table border="0" width="54%" id="table22" cellspacing="1" cellpadding="1" align="center">
											<!--<table border="0" width="100%" id="table24" align="center">-->
											<tr><td>&nbsp;</td></tr>
												<tr>
													<td width="10">&nbsp;</td>
													<!--<td width="199">&nbsp;</td>-->
												  <td colspan="2" align="center"><h2><font color="#000000">	      												</font></h2></td>
												</tr>
												
												<tr align="left">
													<td width="10">&nbsp;</td>
													<td width="185">
														<font style="font-size: 8.5pt" face="Verdana" color="#000000">Id</font>													</td>
													<td width="282">
														<input type="text" name="id" id="id" value="<?php echo "$rowsel[id]";?>"                                                        size="38" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px" readonly>
												  </td>
													<td width="8">&nbsp;</td>
												</tr>
												<tr align="left">
													<td width="10">&nbsp;</td>
													<td width="185">
													<font style="font-size: 8.5pt" face="Verdana" color="#000000">Name</font></td>
													<td>
														<input type="text" name="name" id="name" value="<?php echo "$rowsel[name]";?>" size="38" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px">
													</td>
													<td width="8">&nbsp;</td>
												</tr>
												<tr align="left">
													<td width="10">&nbsp;</td>
													<td width="185">
													<font style="font-size: 8.5pt" face="Verdana" color="#000000">User Type</font></td>
													<td>
	
	
	<?php
	//include('../administrator/config.php');
	?>
<select size="1" name="usertype" id="usertype" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px">
<?php	
//print_r($rowsel['usertype']);
          foreach($type as $key=>$val)
	        {
			if($rowsel['usertype']==$val)
	  	      {
		   echo "<option value=$val selected>$val</option>";
	  	     }else
			   {
		     echo "<option value=$val>$val</option>";
	           }
	 }
	
	?>
	</select>					</td>
													<td width="8">&nbsp;</td>
												</tr>
												<tr>
													<td width="10">&nbsp;</td>
													<td width="185">
													<font style="font-size: 8.5pt" face="Verdana" color="#000000">
													Login Id</font></td>
													<td>
													<input type="text" name="loginid" id="loginid" value="<?php echo "$rowsel[loginid]";?>" size="38" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px"></td>
													<td width="8">&nbsp;</td>
												</tr>
												
												<tr>
													<td width="10">&nbsp;</td>
													<td width="185">
													<font face="Verdana" style="font-size: 8.5pt" color="#000000">
													Email Id</font></td>
													<td>
													<input type="text" name="emailid" id="emailid" value="<?php echo "$rowsel[emailid]";?>" size="38" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px"></td>
													<td width="8">&nbsp;</td>
												</tr>
												<tr>
													<td width="10">&nbsp;</td>
													<td width="185">&nbsp;</td>
													<td>&nbsp;</td>
													<td width="8">&nbsp;</td>
												</tr>
												<tr>
													<td width="10">&nbsp;</td>
													<td width="185">&nbsp;</td>
													<td>
													<input type="submit" value="Edit" name="submit" style="border:1px solid #000000; font-size: 8pt; font-family: Verdana; " ></td>
													<td width="8">&nbsp;</td>
												</tr>
												<tr>
													<td width="10">&nbsp;</td>
													<td width="185">&nbsp;</td>
													<td>&nbsp;</td>
													<td width="8">&nbsp;</td>
												</tr>	
							</table>
</form>							
</td>
</tr>
										
													
													
													
													
													
													
												
											</td>
											
										</tr>
									</table>
								
					</form>
					</td>
										
				</tr>
				<tr>
					<td><p align="center">&nbsp;&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td><p align="center"></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
				</tr>
</table>					
</td>
<td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
	<td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
 </tr>

         <tr>
            <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top" colspan="5">
								    <font color="#000000" face="Verdana">
							        <span style="font-size: 8.5pt">
							         
						            </span></font></td>
									 <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
								  <td bgcolor="#E5E5E5" align="left" valign="top">&nbsp;</td>
									
 </tr>
</table>
	
					
						